Technical Q&As


The Apple Media Tool and Apple Media Tool Programming Environment products have been discontinued. For more information check out: AMT/PE Discontinued.

AMT_PE 25 - "string equal" Not Reliable (1-Aug-95)


Q The "string equal" doesn't seem to work reliably. Is this being fixed?

A The "=" operator is not always a "deep equal", and "=" ordinarily compares only two addresses for equality rather than comparing the values at those addresses. The best workaround is to subtract the two strings, and check the result. If the result is zero, the two strings contain the same characters

Technical Q&As
Previous Question | Contents | Next Question